﻿@model ViewDataBusiness.ViewSetting
@{
    ViewBag.Title = Model.ViewTitle;

    ViewBag.jQuery = true;
    ViewBag.jQueryUI = true;
    ViewBag.Json = true;
    ViewBag.Flexigrid = true;
    ViewBag.Global = true;

    ViewBag.Css = "/Content/ViewSetting/Site.css";
    ViewBag.Js = "/Content/" + ViewContext.RouteData.Values["ViewForder"] + "/" + ViewContext.RouteData.Values["ViewName"] + ".js";
    
    Layout = "~/Views/_Template.cshtml";

    string NotBind, Bind;
    if (ViewContext.RouteData.Values["KeyC"].ToString() == "暂无绑定")
    {
        NotBind = "none";
        Bind = "inline";
    }
    else
    {
        NotBind = "inline";
        Bind = "none";
    }
}
<script type="text/javascript">var JsonOriginal = @Html.Raw(Model.JsonString);</script> 
<table id="MainTable" cellpadding="0" cellspacing="4" width="100%">
    <tr id="TitleTR"><td class="PageTitle"><div class="Title">@Model.ViewTitle > @ViewContext.RouteData.Values["KeyB"] ( @ViewContext.RouteData.Values["KeyA"] )</div></td></tr> 
    <tr id="SearchTR"><td class="Search TopTD"><div id="TabRadio" style="display:@NotBind;margin-right:16px;"><input type="radio" id="radio1" name="TabRadio" value="绑定客户列表" /><label for="radio1">绑定客户列表</label><input type="radio" id="radio2" name="TabRadio" value="所有客户列表" /><label for="radio2">所有客户列表</label></div><button id="ButtonCancel" title="取消绑定后没有限制操作的客户" style="display:@NotBind;margin-right:16px;">取消所有绑定</button><button id="ButtonBind" title="绑定客户后限制只能操作绑定的客户" style="display:@Bind;margin-right:16px;">绑定部分客户</button><button id="ButtonBack" style="margin-right:16px;">返回</button></td></tr>         
    <tr><td id="ListTD"></td></tr>    
    <tr id="PageTR"><td class="Page"></td></tr>
</table>
<div style="display:none" id="UpdateDialog" title="修改绑定权限">
<input type="hidden" id="AutoID" />
<table class="DialogMianTable" id="UpdateTable" cellpadding="0" cellspacing="4" style="margin-top:8px;">
    <tr><td class="Unit"> 
        <div class="Panel"><table cellpadding="0" cellspacing="0"><tr><td class="Name">系统编号</td><td class="Input"><input type="text" id="voucher_id" readonly="readonly" style="width:120px" /></td></tr></table></div>
        <div class="Panel"><table cellpadding="0" cellspacing="0"><tr><td class="Name">客户编号</td><td class="Input"><input type="text" id="ct_user_no" readonly="readonly" style="width:200px" /></td></tr></table></div>
        <div class="Clear"></div>                                                                                                                                                          
        <div class="Panel"><table cellpadding="0" cellspacing="0"><tr><td class="Name">分店编号</td><td class="Input"><input type="text" id="ct_store_no" readonly="readonly" style="width:120px" /></td></tr></table></div>
        <div class="Panel"><table cellpadding="0" cellspacing="0"><tr><td class="Name">客户简称</td><td class="Input"><input type="text" id="ct_abbr" readonly="readonly" style="width:200px" /></td></tr></table></div>
        <div class="Clear"></div>                                                                                                                    
        <div class="Panel"><table cellpadding="0" cellspacing="0"><tbody><tr><td class="Name"><label for="IsView">浏览权限</label></td><td class="Input"><input type="checkbox" id="IsView" name="IsView" /></td></tr></tbody></table></div>
        <div class="Panel"><table cellpadding="0" cellspacing="0"><tbody><tr><td class="Name"><label for="IsEdit">修改权限</label></td><td class="Input"><input type="checkbox" id="IsEdit" name="IsEdit" /></td></tr></tbody></table></div>
        <div class="Panel"><table cellpadding="0" cellspacing="0"><tbody><tr><td class="Name"><label for="IsReport">报表权限</label></td><td class="Input"><input type="checkbox" id="IsReport" name="IsReport" /></td></tr></tbody></table></div>
    </td></tr>
</table>
</div>